﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Prodma.DataAccess.DataService.ListService
{
    public static class MenuTargetList
    {
        public static SelectList GetList()
        {
            Dictionary<int, string> targetList = new Dictionary<int, string>();
            targetList.Add(0, "_blank");
            targetList.Add(1, "_parent");
            targetList.Add(2, "_self");
            targetList.Add(3, "_top");

            SelectList selectList = new SelectList(targetList.ToDictionary(x => x.Key, z => z.Value), "Key", "Value");

            return selectList;
        }

        public static SelectList GetList(int target)
        {
            Dictionary<int, string> targetList = new Dictionary<int, string>();
            targetList.Add(0, "_blank");
            targetList.Add(1, "_parent");
            targetList.Add(2, "_self");
            targetList.Add(3, "_top");

            SelectList selectList = new SelectList(targetList.ToDictionary(x => x.Key, z => z.Value), "Key", "Value", target);

            return selectList;
        }
    }
}
